<%@ Page Language="vb" AutoEventWireup="false" CodeFile="istituto.aspx.vb" Inherits="istituto"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Istituti</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="style.css" type="text/css" rel="StyleSheet">
		<script language="javascript">
			
			function chiudi(){
				w = eval("window.opener.Form1.opName");
				window.opener.navigate(w.value);
				self.close();  
			}
			
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<div align="center">
				<!-- tabella di contorno, bordo rosso -->
				<table width="700" cellpadding="0" cellspacing="0" border="1" style="BORDER-RIGHT:1px; BORDER-TOP:1px; BORDER-LEFT:1px; BORDER-BOTTOM:1px"
					bordercolor="#de0029" id="tabella di contorno">
					<tr>
						<td width="100%" bgcolor="#de0029">
							<table cellSpacing="0" cellPadding="0" width="700" border="0" ID="Table1" bgcolor="#ffffff"
								style="BORDER-COLLAPSE: collapse" bordercolor="#111111">
								<tr>
									<td width="6">
										<img src="images/x.gif" width="1" height="1"></td>
									<td width="15">
										<img src="images/quadratino_rosso.gif" width="10" height="10"></td>
									<td width="328" height="10"><span class="titolo">Istituti </span>
									</td>
									<td width="327">
										<p align="right"><span class="blu"><INPUT class="blu" id="btChiudi" style="BACKGROUND-POSITION: right center; BACKGROUND-IMAGE: url(images/chiudi.gif); VERTICAL-ALIGN: sub; WIDTH: 67px; CURSOR: hand; BORDER-TOP-STYLE: none; BACKGROUND-REPEAT: no-repeat; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; HEIGHT: 19px; BACKGROUND-COLOR: transparent; TEXT-ALIGN: left; BORDER-BOTTOM-STYLE: none"
													onclick="chiudi();" type="button" value="chiudi" name="btChiudi"></span></p>
									</td>
								</tr>
								<tr>
									<td colspan="4" width="100%" height="5"><img src="images/x.gif" width="1" height="5"></td>
								</tr>
							</table>
							<table cellSpacing="0" cellPadding="0" width="700" border="0" ID="Table1" bgcolor="#ffffff"
								style="BORDER-COLLAPSE: collapse" bordercolor="#111111">
								<tr>
									<td width="100%" height="15"><img src="images/x.gif" width="1" height="5"></td>
								</tr>
							</table>
							<TABLE width="700" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
								<TR>
									<TD width="6" valign="top"><img src="images/x.gif" alt=""></TD>
									<TD width="688" height="20" valign="top" bgcolor="#ffffff">
										<asp:datagrid id="dgIst" runat="server" GridLines="Horizontal" BorderColor="#1A49A3" PagerStyle-CssClass="ordinato"
											AllowSorting="True" AutoGenerateColumns="False" PagerStyle-Mode="NumericPages" PagerStyle-Position="Top"
											Width="100%" AllowPaging="True">
											<Columns>
												<asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
												<asp:TemplateColumn>
													<HeaderStyle VerticalAlign="Top"></HeaderStyle>
													<ItemStyle CssClass="nero"></ItemStyle>
													<HeaderTemplate>
														<span class="blu"><b>Denominazione</b></span>
													</HeaderTemplate>
													<ItemTemplate>
														<asp:LinkButton id="lkVedi" CausesValidation="False" CssClass="nero_bold" CommandName="vedi" runat="Server" Text='<%# (Container.DataItem("denominazione")) %>'>
														</asp:LinkButton>
													</ItemTemplate>
												</asp:TemplateColumn>
												<asp:BoundColumn DataField="tipo" HeaderText="Tipo">
													<HeaderStyle Font-Bold="True" CssClass="blu"></HeaderStyle>
													<ItemStyle CssClass="nero"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="Citta" HeaderText="Citta">
													<HeaderStyle Font-Bold="True" CssClass="blu"></HeaderStyle>
													<ItemStyle CssClass="nero"></ItemStyle>
												</asp:BoundColumn>
												<asp:BoundColumn DataField="Provincia" HeaderText="Provincia">
													<HeaderStyle Font-Bold="True" CssClass="blu"></HeaderStyle>
													<ItemStyle CssClass="nero"></ItemStyle>
												</asp:BoundColumn>
												<asp:TemplateColumn>
													<ItemTemplate>
														<asp:LinkButton Runat="server" CausesValidation="False" ID="lkElimina" CommandName="elimina" CssClass="blu"><img src="images/elimina.gif" border="0">&nbsp;elimina</asp:LinkButton>
													</ItemTemplate>
												</asp:TemplateColumn>
											</Columns>
											<PagerStyle Position="Top" CssClass="ordinato" Mode="NumericPages"></PagerStyle>
										</asp:datagrid>
										<p>
											<asp:linkbutton id="lkNuovo" CssClass="blu" Runat="server"><img src="images/aggiungi.gif" border="0">&nbsp;aggiungi</asp:linkbutton>
											<TABLE borderColor="#1a49a3" cellSpacing="1" cellPadding="4" width="100%" bgColor="#ffffff"
												border="1">
												<tr>
													<td colSpan="2"><SPAN class="blu"><B>Dati istituto</B></SPAN><asp:textbox id="txId" Runat="server" Visible="False"></asp:textbox></td>
												</tr>
												<tr>
													<td style="WIDTH: 486px"><span class="nero">Tipo</span><br>
														<asp:dropdownlist id="dTipo" runat="server" CssClass="nero" DataValueField="codice" DataTextField="descrizione">
															<asp:ListItem Value="1">Scuola superiore</asp:ListItem>
															<asp:ListItem Value="2">Universit&#224;</asp:ListItem>
														</asp:dropdownlist></td>
													<td style="WIDTH: 562px"><span class="nero">Denominazione</span><br>
														<asp:textbox id="txDenominazione" runat="server" Width="427px" CssClass="nero" Font-Bold="True"></asp:textbox></td>
												</tr>
												<tr>
													<td style="WIDTH: 377px"><span class="nero">Citta</span><br>
														<asp:textbox id="txCitta" runat="server" Width="216px" CssClass="nero" Font-Bold="True"></asp:textbox></td>
													<td><span class="nero">Provincia</span><br>
														<asp:dropdownlist id="dProv" runat="server" CssClass="nero" DataTextField="descrizione" DataValueField="codice"></asp:dropdownlist></td>
												</tr>
											</TABLE>
											<table width="100%">
												<tr>
													<td align="right">
														<asp:linkbutton id="lkSalva" CssClass="blu" Runat="server"><img src="images/salva.gif" border="0">&nbsp;salva</asp:linkbutton>&nbsp;&nbsp;&nbsp;&nbsp;
														<asp:linkbutton id="lkAnnulla" Runat="server" CssClass="blu"><img src="images/annulla.gif" border="0">&nbsp;annulla</asp:linkbutton>&nbsp;
													</td>
												</tr>
											</table>
										</p>
									</TD>
									<TD width="6" valign="top"><img src="images/x.gif" alt=""></TD>
								</TR>
								<TR>
									<TD width="6" valign="top" bgcolor="#fff8f9"><img src="images/x.gif" alt="" height="5"></TD>
									<TD width="688" height="20" valign="top" bgcolor="#fff8f9"></TD>
									<TD width="6" valign="top" bgcolor="#fff8f9"><img src="images/x.gif" alt="" height="5"></TD>
								</TR>
							</TABLE>
						</td>
					</tr>
				</table>
		</form>
		</DIV>
	</body>
</HTML>
